<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "insurance_plan".
 *
 * @property integer $plan_id
 * @property string $plan_code
 * @property string $project_code
 * @property string $plan_name
 * @property string $plan_tag
 * @property string $plan_desc
 * @property string $ctime
 * @property string $status
 */
class InsuranceProvider extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'insurance_plan';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ctime'], 'safe'],
            [['plan_code', 'project_code', 'plan_tag'], 'string', 'max' => 32],
            [['plan_name'], 'string', 'max' => 128],
            [['plan_desc'], 'string', 'max' => 256],
            [['status'], 'string', 'max' => 16],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'plan_id' => 'Plan ID',
            'plan_code' => 'Plan Code',
            'project_code' => 'Project Code',
            'plan_name' => 'Plan Name',
            'plan_tag' => 'Plan Tag',
            'plan_desc' => 'Plan Desc',
            'ctime' => 'Ctime',
            'status' => 'Status',
        ];
    }
}
